package com.hzj.mapper;

import com.hzj.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface SysUserMapper {

    @Select("select * from sys_user")
    public List<SysUser> getSysUserList();

    @Select("select * from sys_user where username=#{name}")
    public SysUser getSysUserByName(String name);

}
